home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 526-550 / disk_546 / 2view / source / 2view.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  1KB  |  63 lines

  1.  
  2. /* Header file for 2View.c */
  3.  
  4. enum ScreenWidths {low,high,superhigh,unknown_w};
  5. typedef enum ScreenWidths ScreenWidths;
  6.  
  7. enum ScreenHeights {nolace,lace,prodlace,unknown_h};
  8. typedef enum ScreenHeights ScreenHeights;
  9.  
  10. enum ScreenTypes {ham,ehb,unknown_t};
  11. typedef enum ScreenTypes ScreenTypes;
  12.  
  13. enum ButtonTypes {none=0,select,menu};
  14. typedef enum ButtonTypes ButtonTypes;
  15.  
  16. typedef struct CAMG
  17. {
  18.    ULONG viewmodes;
  19. } CAMG;
  20.  
  21. #define MIN(x,y) ((x)<(y)) ? (x) : (y)
  22.  
  23. /* Prototypes for functions defined in 2View.c */
  24. void _main(void);
  25. void ReadAndDisplay(char *filename,struct IFFHandle *iff);
  26. void setScreenColors(struct Screen *scr,
  27.              UBYTE *colorMap,
  28.              UBYTE depth);
  29. void ReadBodyIntoBitmap(struct BitMap *bm,
  30.             UBYTE *buffer,
  31.             ULONG bufferSize);
  32. void __regargs GetALine(BYTE *src,
  33.             UBYTE *dest,
  34.             ULONG *pos,
  35.             UWORD width,
  36.             unsigned char Compression);
  37. void getBMHD(struct BitMapHeader *bmhd);
  38. void ParseArgs(ULONG *args);
  39. ButtonTypes checkButton(void);
  40. void printError(char *error1,char *error2);
  41. void cleanup();
  42. BOOL dumpRastPort(struct RastPort *rp,struct ViewPort *vp);
  43.  
  44. struct EasyStruct erError2Line =
  45. {
  46.    sizeof(struct EasyStruct),
  47.    0,
  48.    "Program error:  2View",
  49.    "%s\n%s\n%s",
  50.    "Ok"
  51. };
  52.  
  53. struct EasyStruct erError1Line =
  54. {
  55.    sizeof(struct EasyStruct),
  56.    0,
  57.    "Program error:  2View",
  58.    "%s\n%s",
  59.    "Ok"
  60. };
  61.  
  62.  
  63.